$(function (){
    let DL=qr.title
    $(".a1").html(DL)
    render(1);
    function render(pageId){
    $.ajax({
        url: "http://chst.vip:1234/api/getbrandproductlist",
        type: "get",
        data: {
            brandtitleid:qr.brandtitleid,
            pagesize:10
        }, 
        success(res) {
            let { result } = res;
            console.log(result)
            let html=""
            result.forEach((item, index, array) => { 
                html+=`
                    <ul class="ul2">
                        <a href="productlist.html?categoryid=${item.categoryId}&productid=${item.productId}"><li>
                        <div class="box1">
                            ${item.productImg}
                        </div>
                        <div  class="box2">
                        <p class="p1">${item.productName}</p>
                        <p class="p2">${item.productPrice}</p>
                        <span>
                        <b class="b3">${item.productQuote}</b>
                        <b class="b4"><span class="iconfont">&#xe638;</span>${item.productCom}</b>
                        </span>
                        </div>
                        </li></a>
                    </ul>
                `
            })
            $(".pricelist").html(html)
        },
        error(err) {
            console.log(err);
        }
    })
 }
})